<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="zh" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
  <!--Configuration-->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/xpin.css" />
  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/xpin.js"></script>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
<div class="top-bar">
  <div class="top-bar-right">
    <?php $this->widget('zii.widgets.CMenu', array (
      'items' => array(
        array('label'=>'个人中心', 'url'=>array('/user/user/profile'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'登录', 'url'=>array('/user/user/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'退出 ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
      ),
    ));?>
  </div>
  <div class="clear-both"></div>
</div>
<div class="container" id="page">
	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->

	<div id="mainmenu_bk">
		<?php $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
				array('label'=>'首页', 'url'=>array('/site/index')),
				array('label'=>'我有车', 'url'=>array('/site/page', 'view' => 'code')),
				array('label'=>'我无车', 'url'=>array('/site/page', 'view' => 'code')),
				array('label'=>'车铺', 'url'=>array('/site/page', 'view' => 'code')),
        array('label'=>'广播', 'url'=>array('/site/page', 'view' => 'code')),
        array('label'=>'关于',
          'items'=>array(
            array('label'=>'联系我们', 'url'=>array('/site/contact')),
            array('label'=>'关于我们', 'url'=>array('/site/page', 'view'=>'about')),
          ),
        ),
			),
		)); ?>
	</div><!-- mainmenu -->

  <?php if(isset($this->breadcrumbs)){
    $this->widget('zii.widgets.CBreadcrumbs', array(
		  'links'=>$this->breadcrumbs,
    ));
  };?><!-- breadcrumbs -->

	<?php echo $content; ?>

	<div id="footer">
    <p><b>&copy;</b> 
      <?php echo date('Y'); ?>&nbsp;-&nbsp;2012 by 
      <?php echo ucfirst(Yii::app()->params['domain_name']); ?>.
      &nbsp;&nbsp;All Rights Reserved.
    </p>
		<p></p>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
